<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>React 二次体验</title>
    <script src="./js/react.development.js"></script>
    <script src="./js/react-dom.development.js"></script>
  </head>
  <body>
    <div id="root"></div>
    <script>
      // 创建 react 元素
      let div = React.createElement(
            'div', 
            null, 
            React.createElement('h2', {title: '新闻标题'}, '春风化雨润神州, 习近平总书记指引数字文化建设述评'),
            React.createElement('p', null, '从诗经、楚辞、汉赋，到唐诗、宋词、元曲、明清小说', React.createElement('a', {href: 'https://www.163.com/news/article/I5LC0GB1000189FH.html', target: '_blank'}, '查看更多'))
        );
      //渲染
      ReactDOM.render(div, document.querySelector('#root'));

      
    </script>
  </body>
</html>
